package com.bed.lovewithpatientbed.pojo;

import java.io.Serializable;

/**
 * malfunction_type
 * @author 
 */
public class MalfunctionType implements Serializable {
    private Integer malfunctionTypeId;

    private String malfunctionTypeName;

    private Integer softdel;

    private static final long serialVersionUID = 1L;

    public Integer getMalfunctionTypeId() {
        return malfunctionTypeId;
    }

    public void setMalfunctionTypeId(Integer malfunctionTypeId) {
        this.malfunctionTypeId = malfunctionTypeId;
    }

    public String getMalfunctionTypeName() {
        return malfunctionTypeName;
    }

    public void setMalfunctionTypeName(String malfunctionTypeName) {
        this.malfunctionTypeName = malfunctionTypeName;
    }

    public Integer getSoftdel() {
        return softdel;
    }

    public void setSoftdel(Integer softdel) {
        this.softdel = softdel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MalfunctionType other = (MalfunctionType) that;
        return (this.getMalfunctionTypeId() == null ? other.getMalfunctionTypeId() == null : this.getMalfunctionTypeId().equals(other.getMalfunctionTypeId()))
            && (this.getMalfunctionTypeName() == null ? other.getMalfunctionTypeName() == null : this.getMalfunctionTypeName().equals(other.getMalfunctionTypeName()))
            && (this.getSoftdel() == null ? other.getSoftdel() == null : this.getSoftdel().equals(other.getSoftdel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMalfunctionTypeId() == null) ? 0 : getMalfunctionTypeId().hashCode());
        result = prime * result + ((getMalfunctionTypeName() == null) ? 0 : getMalfunctionTypeName().hashCode());
        result = prime * result + ((getSoftdel() == null) ? 0 : getSoftdel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", malfunctionTypeId=").append(malfunctionTypeId);
        sb.append(", malfunctionTypeName=").append(malfunctionTypeName);
        sb.append(", softdel=").append(softdel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}